package com.flyme.module.base.client.api;


import com.flyme.common.core.model.ResultBody;
import com.flyme.common.core.model.query.PagerInfo;
import com.flyme.common.core.model.query.PqGrid;
import com.flyme.module.base.client.entity.SysAuthority;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author zyf
 */
public interface SysAuthorizeRemoteService {


    /**
     * 获取已授权访问列表
     *
     * @return
     */
    @PostMapping("/grant/access")
    PqGrid grantAccess(@RequestParam(value = "pagerInfo") PagerInfo pagerInfo, @RequestParam(name = "keyword", required = false) String keyword);


    /**
     * 获取已授权访问列表
     *
     * @return
     */
    @GetMapping("/grant/access/list")
    ResultBody<List<SysAuthority>> grantAccessList();

}
